package com.ruoyi.web.controller.nongjt.stats;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.controller.nongjt.stats.vo.BarPictureVO;
import com.ruoyi.web.controller.nongjt.stats.vo.PiePictureVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;


@RestController
@RequestMapping("/njt/stats")
public class statController {
    @GetMapping("/pie/{year}")
    public AjaxResult getDataByCheckYear1(@PathVariable Integer  year){
        List<PiePictureVO> piePictureVOList = new ArrayList<PiePictureVO>();
        return AjaxResult.success(piePictureVOList);
    }
    @GetMapping("/bar/{year}")
    public AjaxResult getDataByCheckYear2(@PathVariable Integer  year){
        BarPictureVO barPictureVO = new BarPictureVO();
        return AjaxResult.success(barPictureVO);
    }

}
